package com.example.user.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

@ApiModel("配置模型")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Config {
    @ApiModelProperty("编号")
    private Integer configId;

    @ApiModelProperty(value = "配置名称",required = true)
    @NotNull(message = "用户名不能为空")
    private String configName;

    @ApiModelProperty(value = "配置信息",example = "咨询管理",required = true)
    @NotNull(message = "配置信息不能为空")
    private String configInfo;

    @ApiModelProperty(value = "配置图标",example = "https://n.sinaimg.cn/sinakd10111/366/w504h662/20200803/46c9-ixeeirz6911558.jpg",required = true)
    @NotNull(message = "配置图标不能为空")
    private String configIcon;

    @ApiModelProperty(value = "配置状态",hidden = true)
    //@NotNull(message = "配置状态不能为空")
    private Integer configStatus;

    public Integer getConfigId() {
        return configId;
    }

    public void setConfigId(Integer configId) {
        this.configId = configId;
    }

    public String getConfigName() {
        return configName;
    }

    public void setConfigName(String configName) {
        this.configName = configName;
    }

    public String getConfigInfo() {
        return configInfo;
    }

    public void setConfigInfo(String configInfo) {
        this.configInfo = configInfo;
    }

    public String getConfigIcon() {
        return configIcon;
    }

    public void setConfigIcon(String configIcon) {
        this.configIcon = configIcon;
    }

    public Integer getConfigStatus() {
        return configStatus;
    }

    public void setConfigStatus(Integer configStatus) {
        this.configStatus = configStatus;
    }
}